import 'package:flutter_base_plugin/base_library/base/base_function.dart';
import 'package:flutter_base_plugin_example/models/goods_details_model.dart';
import 'package:flutter_base_plugin_example/net/http_urls.dart';

class GoodsDetailsViewModel extends BaseObjViewModel<GoodsDetailsModel> {
  int id;
  double webViewHeight = 1;

  GoodsDetailsViewModel(this.id);

  setWebViewHeight(double height) {
    webViewHeight = height;
    notifyListeners();
  }

  @override
  Map<String, dynamic> getRequestParams() {
    // TODO: implement getRequestParams
    return {};
  }

  @override
  String getTag() {
    // TODO: implement getTag
    return "GoodsDetailsViewModel";
  }

  @override
  String getUrl() {
    // TODO: implement getUrl
    return "${HttpUrls.goodsDetails}/${id}";
  }
}
